<? if(count($this->paginator)): ?>
 <div class="widget">
        <div class="widget_title"><span class="iconsweet">&</span>
            <h5><?= $this->title; ?></h5>
        </div>
     <div class="widget_body">
        <table border="0" width="100%" class="activity_datatable" cellspacing="0" cellpadding="8">
            <tr>
                <th width="5%"> S </th>
                <th width="5%"> ID </th>
                <th width="27%"> Маселе </th>
                <th width="27%"> Тема </th>
                <th width="5%"> Талкуу </th>
                <th width="10%"> Кыйынчылыгы </th>
                <th width="10%"> Чыгарумдуулугу </th>
                <th width="10%"> Кабыл алынга </th>
            </tr>
            <? foreach ($this->paginator as $problem) :?>
            <tr>
                <td>

                </td>
                <td>
                    <?= $problem['problem_id']; ?>
                </td>
                <td>
                    <a href="<?= $this->url(array(
                        'action'        => 'view',
                        'id'            => $problem['problem_id']
                    ));?>"> <?= $problem['title']; ?> </a>
                </td>
                <td> <?= $problem['theme']; ?> </td>
                <td> <?= $problem['analysis']; ?> </td>
                <td> <?= $problem['complexity']; ?>% </td>
                <td> 0% </td>
                <td> 0 </td>
            </tr>
            <? endforeach;?>
        </table>
    </div>
 </div>
    <?= $this->paginationControl($this->paginator, 'Sliding', 
                'partials/my_paginator.phtml'); ?>

<? endif; ?>

